<?php
$mailTo = "yosoyruben@gmail.com";
$name = $_POST['nombre'];
$address = $_POST['direccion'];
$message = $_POST['cuerpo_mensaje'];
$subject = "[moblesalcaraz.es] Mensaje de $name";

$headers = "From: $name <$address>\r\n" .
    'Reply-To: '.$address."\r\n" .
    'X-Mailer: PHP/' . phpversion();

$mailCorrectlySent = mail($mailTo, $subject, $message, $headers);
if($mailCorrectlySent) {
	echo "ok";
}